package cn.fyl.pet.controller;

import cn.fyl.basic.util.JsonResult;
import cn.fyl.basic.util.PageList;
import cn.fyl.pet.domain.Pet;
import cn.fyl.pet.domain.PetType;
import cn.fyl.pet.query.PetQuery;
import cn.fyl.pet.service.IPetService;
import cn.fyl.pet.service.IPetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/petType")
public class PetTypeController {

    @Autowired
    private IPetTypeService petTypeService;

    @GetMapping("/typeTree")
    public List<PetType> typeTree() {

        return petTypeService.typeTree();
    }
}
